<script setup lang="ts">
import BackCard from "../../block/BackCard.vue";
import { Led, LED_STATE } from "@ys-lib/naive-ui";
import { useMqWebSocket } from "@ys-lib/vue/use";
const { ws, isConnected } = useMqWebSocket({});
</script>

<template>
  <BackCard>
    <Led
      :state="isConnected ? LED_STATE.SUCCESS : LED_STATE.ERROR"
      title="MQ 连接状态"
    />
  </BackCard>
</template>

<style scoped></style>
